/**
* Copyright @ 2023 iAuto (Shanghai) Co., Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are NOT permitted except as agreed by
* iAuto (Shanghai) Co., Ltd.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/


import {IAntdTablePageParams} from './type';

// 状态(0-启用，1-禁用)
export type IStatus = 0 | 1 | 2;

// 基本数据
export type ICategoryItem = {
  // 必须 分类名称
  name: string;
  // 必须 描述
  description: string;
  //  必须 排序权重(数值越小，排名越靠前)
  weight: number;
  //  必须 场景ID
  status: number;
};

// 修改场景分类 参数
export type ICategoryEditParams = ICategoryItem

// 修改场景分类 参数
export type ICategoryEditCreate = ICategoryItem

// 场景分类列表
export interface ICategoryListItem extends ICategoryItem {
  // 必须 分类主键ID
  id: number;
  // 车系
  seriesCode: string;
  seriesName?: string;
  // 唯一标识
  string?: string;
  // 创建时间
  createTime?: string;
  // 更新时间
  updateTime?: string;
}

// 场景分类列表 参数
export interface ICategoryListParams extends IAntdTablePageParams{
  name?: string; // 分类名称
  status?: IStatus; // 状态(0-启用，1-禁用)
}

// 场景分类列表
export type ICategoryList = ICategoryListItem[];


